<template>
    <div class="content">

    </div>
</template>

<script setup>
import { getNewsContent } from '@/api/viewapi.js'
import router from '@/router/index.js'
import { onMounted, reactive, ref } from 'vue'
import { useRoute } from 'vue-router';
import { base64Img } from '@/tools/tools.js'
const route = useRoute();
const viewData = reactive({
    checkid: 0,
    newsid: 0
})
const data = ref({})


const _getNewsContent = (id, newsid) => {
    getNewsContent(newsid, id).then((res) => {
        console.log(res);
        data.value = res.data.value
    })
}

onMounted(() => {
    viewData.checkid = route.query.checkid
    viewData.newsid = route.query.newsid
    _getNewsContent(route.query.checkid, route.query.newsid)
});
</script>

<style lang="scss" scoped>
/* pc */
@media (min-width: 800px) {
    

}

/* phone */
@media screen and (max-width: 799px) {
    

}
</style>